package com.ykt.mall.ctrl;

import com.jfinal.aop.Before;
import com.jfinal.core.Controller;
import com.jfinal.ext.plugin.config.ConfigKit;
import com.jfinal.ext.route.ControllerBind;
import com.ykt.interceptor.Seach;
import com.ykt.model.Blog;

@ControllerBind(controllerKey="/blog")
public class BlogCtrl extends Controller{
	@Before(Seach.class)
	public void index(){
		Seach seach=getAttr("seachBean");
		setAttr("blogPage", Blog.dao.paginate(getParaToInt(0, 1),20,seach));
	}
}
